﻿namespace KinonekoSoftware.ArkSpark.Documents.Primitives
{
    public abstract class ContentRoot : DocumentElement
    {
        private string _content;

        protected virtual void OnContentChanged()
        {
            
        }
        

        /// <summary>
        /// 获取或设置 <see cref="Content"/> 属性。
        /// </summary>
        public string Content
        {
            get => _content;
            set
            {
                OnContentChanged();
                SetValue(ref _content, value);
            }
        }
    }
}